package com.zte.shopping.mapper.order;


import com.zte.shopping.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    /**
     * 生成订单信息
     */
    void insertOrder(Order order);

    /**
     * 根据userId查询对应的订单信息
     */
    List<Order> selectByUserId(@Param("useId") Integer userId);

    /**
     * 根据订单id查询订单的详情
     */
    Order selectByOrderId(@Param("id") int parseInt);
}
